package com.cl.ks.repository;

import com.cl.ks.entity.KsFilterLog;
import com.cl.mvc.repository.BaseRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface KsFilterLogRepository extends BaseRepository<KsFilterLog> {

    @Query(nativeQuery = true,value = "select * from ks_filter_log where rule_id=:ruleId order by create_time desc limit 1")
    KsFilterLog getFirstByRuleId(Integer ruleId);
}
